package com.gdit.zax.dao;

import java.util.ArrayList;

import com.gdit.zax.entitys.Comment;
import com.gdit.zax.entitys.CrouseTree;
import com.gdit.zax.entitys.Dynamic;
import com.gdit.zax.entitys.MyStudentDym;
import com.gdit.zax.entitys.Record;

public interface DynamicDao {
	public ArrayList<Dynamic> getAllDynamic (int page,int onepagecount);
	public ArrayList<Dynamic> getMyAllDynamic (int uid,int page,int onepagecount);
	public int getMyAllDynamicsum (int uid);
	
	public ArrayList<MyStudentDym> getMyStuDynamic (int uid,int page,int onepagecount);
	public int getMyStuDynamicsum (int uid);
	
	public boolean addDownDynamic(int userid,Record rec);
	public ArrayList<Dynamic> getDownDynamic (int page,int onepagecount);
	public ArrayList<Dynamic> getMyDownDynamic (int uid,int page,int onepagecount);
	public int getMyDownDynamicsum (int uid);
	
	public boolean addLearnDynamic(int userid,Record rec);
	public ArrayList<Dynamic> getLearnDynamic (int page,int onepagecount);
	public ArrayList<Dynamic> getMyLearnDynamic (int uid,int page,int onepagecount);
	public int getMyLearnDynamicsum (int uid);
	
	
	public boolean addVideoDynamic(int userid,Dynamic dym);
	public ArrayList<Dynamic> getVideoDynamic (int page,int onepagecount);
	public ArrayList<Dynamic> getMyVideoDynamic (int uid,int page,int onepagecount);
	public int getMyVideoDynamicsum (int uid);
	
	public boolean addSeeDynamic(int userid,Record rec);
	public ArrayList<Dynamic> getSeeDynamic (int page,int onepagecount);
	public ArrayList<Dynamic> getMySeeDynamic (int uid,int page,int onepagecount);
	public int getMySeeDynamicsum (int uid);
	
	public boolean addCommDynamic(int userid,Comment comm);
	public ArrayList<Comment> getCommDynamic (int page,int onepagecount);
	public ArrayList<Comment> getMyCommDynamic (int uid,int page,int onepagecount);
	public int getMyCommDynamicsum (int uid);
	
	public boolean addSystemDynamic(int type,int userid,int videoid,String content,String pic);
	public ArrayList<Dynamic> getSystemDynamic (int page,int onepagecount);
	public ArrayList<Dynamic> getMySystemDynamic (int uid,int page,int onepagecount);
	public int getMySystemDynamicsum (int uid);
	
	public ArrayList<CrouseTree> getUserLearnTree(int uid,int page,int onepagecount);//获取用户学习完的课程（学习树、历程）
	
	public ArrayList<Dynamic> getProcToday(int uid,int page,int onepagecount);
//	public  ArrayList<GDynamicc> getDynamic(int type,)
}
